package com.basicorm;

import java.sql.SQLException;
import java.util.Collection;

public interface EntityStorage<T> {
    Collection<T> findByExample(T example) throws SQLException;
    void insert(T entity) throws SQLException;
    Collection<T> findAll() throws SQLException;
}
